#include<stdio.h>
#include<stdlib.h>
int main(){
    FILE *file=fopen("dict.dic","w");
    
    char x[500];
    fgets(x,500,stdin);
    fprintf(file,x);
    fgets(x,500,stdin);
    fprintf(file,x);
    fgets(x,500,stdin);
    fprintf(file,x);
    fclose(file);
    return 0;

}